package sign_in.loginsystem.mapper;


import org.apache.ibatis.annotations.Mapper;
import sign_in.loginsystem.model.entity.Search;
import sign_in.loginsystem.model.entity.User;

import java.util.ArrayList;

@Mapper
public interface UserMapper {


    User search(String username,String password);

    boolean delete(String username,String password);



    boolean edit(User user);

    ArrayList<User> allUser();

    boolean administerDel(Integer id);

    Integer userNum();

    ArrayList<User> adminSearch(Search search);

    boolean createUser(User user);

    boolean insertRoleAndUser(User user);

}
